const isServer = process.env.RUN_ENV === 'server'
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
    ['@babel/preset-env', { modules: false }]
  ],
  plugins: [
    ['import', {
      libraryName: 'vant',
      libraryDirectory: isServer ? 'lib' : 'es',
      style: true
    }, 'vant']
  ]
}
